package netspy;

import java.util.ArrayList;
import java.io.*;

import netspy.dateien.Log;
import netspy.dateien.Mail;
import netspy.dateien.MailList;

public class Ordner {
	private String path;
	private ArrayList<Datei> dateien;
	
	public Ordner(String path, Ordnertyp typ) {
		this.setPath(path);
		File folder = new File(path);
					
/*		if(typ.compareTo(Ordnertyp.EMAIL) == 0) {
			for (File file : folder.listFiles()) {
				dateien.add(new Mail(file));
			}
		} else if (typ.compareTo(Ordnertyp.EMAIL_BLACKLIST) == 0) {
			for (File file : folder.listFiles()) {
				dateien.add(new MailList(file));
			}
		} else if (typ.compareTo(Ordnertyp.EMAIL_WHITELIST) == 0) {
			for (File file : folder.listFiles()) {
				dateien.add(new MailWhitelist(file));
			}
		} else if (typ.compareTo(Ordnertyp.LOG) == 0) {
			for (File file : folder.listFiles()) {
				dateien.add(new Log(file));
			}
		} else if (typ.compareTo(Ordnertyp.CONFIG) == 0) {
			for (File file : folder.listFiles()) {
				dateien.add(new Log(file));
			}
		}
		*/
	}

	/**
	 * @return the path
	 */
	public String getPath() {
		return path;
	}

	/**
	 * @param path the path to set
	 */
	public void setPath(String path) {
		this.path = path;
	}
}
